package com.nanjia.boot.outboundorderview.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nanjia.boot.common.result.Result;
import com.nanjia.boot.outboundorderview.model.entity.OutboundOrderView;
import com.nanjia.boot.outboundorderview.model.form.OutboundOrderViewForm;
import com.nanjia.boot.outboundorderview.model.query.OutboundOrderViewQuery;
import com.nanjia.boot.outboundorderview.model.vo.OutboundOrderViewVO;
import jakarta.validation.Valid;

/**
 * 出库单业务关联服务类
 *
 * @author 周洋
 * @since 2025-08-25 00:11
 */
public interface OutboundOrderViewService extends IService<OutboundOrderView> {

    /**
     *出库单业务关联分页列表
     *
     * @return {@link IPage<OutboundOrderViewVO>} 出库单业务关联分页列表
     */
    IPage<OutboundOrderViewVO> getOutboundOrderViewPage(OutboundOrderViewQuery queryParams);

    /**
     * 获取出库单业务关联表单数据
     *
     * @param id 出库单业务关联ID
     * @return 出库单业务关联表单数据
     */
     OutboundOrderViewForm getOutboundOrderViewFormData(Long id);

    /**
     * 新增出库单业务关联
     *
     * @param formData 出库单业务关联表单对象
     * @return 是否新增成功
     */
    boolean saveOutboundOrderView(OutboundOrderViewForm formData);

    /**
     * 修改出库单业务关联
     *
     * @param id   出库单业务关联ID
     * @param formData 出库单业务关联表单对象
     * @return 是否修改成功
     */
    boolean updateOutboundOrderView(Long id, OutboundOrderViewForm formData);

    /**
     * 删除出库单业务关联
     *
     * @param ids 出库单业务关联ID，多个以英文逗号(,)分割
     * @return 是否删除成功
     */
    boolean deleteOutboundOrderViews(String ids);

    Result<Object> getOrder(@Valid OutboundOrderViewQuery queryParams);
}
